<%@ page language="java" contentType="text/html; charset=UTF-8"
         pageEncoding="UTF-8" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<!DOCTYPE html>
<html>
<head>
    <%@include file="/WEB-INF/jspf/adminPage.jspf" %>
    <%@include file="/WEB-INF/jspf/meta/meta.jspf" %>
    <%@include file="/WEB-INF/jspf/css_js/easyui_grid_tools_js.jspf"%>
    <title>课程表主体</title>
    <script type="text/javascript" src="<%=request.getContextPath()%>/static/course/course2.js"></script>

    <script type="text/javascript">

    </script>
</head>
<body>
<table id="dg_course" class="easyui-datagrid"pagination="true" pageList="[5,10,50,100,200,300,500]" pageSize="5"
       data-options="
		fit:true
		,url:'<%=request.getContextPath()%>/course/selectCourse1.json'
		,fitColumns:false
		,singleSelect:true
		,toolbar:'#tb'
        ,onRowContextMenu:f_contextMenu_course1		<%--鼠标右键事件--%>
		">
    <thead>
    <tr>
        <th data-options="{field:'course1Id',width:100,hidden:true}">表头主键 我是隐藏的。你看不见我</th>
        <th data-options="{field:'gradeId',width:100,hidden:true}">班级id外键 我是隐藏的。你看不见我</th>
        <th data-options="{field:'gradeName',width:100,editor:'text'}">班级名称</th>
        <th data-options="{field: 'course1Start',title: '起始时间',width:200,align: 'center',editor:'text'}"></th>
        <th data-options="{field: 'course1End',title: '结束时间',width:200,align: 'center',sortable:true,editor:'text'}"></th>
    </tr>
    </thead>
</table>


<!-- 工具栏使用 -->
<div id="tb" style="padding: 5px; height: auto">
    <div>
        <c:if test="${code.contains('course:dell')}">
        <a href="#" class="easyui-linkbutton"  iconCls="icon-remove" onclick="$('#dlg_dell').dialog('open')">删除</a>
        </c:if>
        <%-- 占位符 --%>
        <c:if test="${code.contains('course:update')}">
            <a href="#" class="easyui-linkbutton" iconCls="icon-edit" onclick="f_courseOpenUpdateView()">修改</a>
        </c:if>
        <%-- 占位符 --%>
<%--        <a href="#" class="easyui-linkbutton" iconCls="icon-search"   onclick="f_common_condition('course1','finallyDoFunction')">查询</a>--%>
        <a href="#" class="easyui-linkbutton" iconCls="icon-edit" onclick="f_course1_oneDetail()">明细</a>
    </div>
</div>

<%-- 动态绑定Combobox下拉框内容 --%>
<%@include file="/WEB-INF/jsp/_combobox.jspf" %>
<div id="cc" class="easyui-calendar"></div>
<!--DataGrid行 右键菜单
    //菜单入口
    function f_contextMenu_subject()
-->
<%@include file="/WEB-INF/jsp/course/_menuGrid.jspf"%>

<!-- 删除对话框架 及后台数据处理
     "$('#dlg').dialog('open')  打开对话框架
     "$('#dlg').dialog('close') 关闭对话框架
-->
<%@include file="/WEB-INF/jsp/course/_dell.jspf"%>

<!--修改对话框架 及后台数据处理
    启动入口
    function f_subject_update()
-->
<%@include file="/WEB-INF/jsp/course/_update.jspf"%>

<!--修改对话框架 及后台数据处理
    启动入口
    function f_subject_oneDetail()
-->
<%@include file="/WEB-INF/jsp/course/_oneDetail.jspf"%>
</body>
</html>
